<?php
namespace api;
use \api\debug as bug;

if (!defined('GAME'))
{
	exit;
}

if(!defined('CONFIG')) {
	include 'configs\config.php';
}

if(!defined('DEBUG')) {
	include 'debug\debug.php';
	$echo = new bug\Printer();
	$mode = new \api\debug\Mode();
}

if(!defined('CLASSLOADER')) {
	include 'class_loader.php';
}

if(!defined('INILOADER')) {
	include 'ini_loader.php';
}

if(!defined('SMARTY')) {
	include '../lib/vendor/Smarty/Smarty.class.php';
	define("SMARTY", true);
}

if(!defined('DOCTRINE')) {
	include ('../lib/vendor/doctrine/Doctrine.php');
	spl_autoload_register(array('Doctrine', 'autoload'));	
}
?>